home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / pc / codewarr / macossup / headers / universa / gxlayout.h < prev    next >
Text File  |  1995-07-06  |  11KB  |  176 lines

  1. /*
  2.      File:        GXLayout.h
  3.  
  4.      Contains:    QuickDraw GX layout routine interfaces.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __GXLAYOUT__
  21. #define __GXLAYOUT__
  22.  
  23.  
  24. #ifndef __CONDITIONALMACROS__
  25. #include <ConditionalMacros.h>
  26. #endif
  27.  
  28. #ifndef __GXTYPES__
  29. #include <GXTypes.h>
  30. #endif
  31. /*    #include <Types.h>                                            */
  32. /*    #include <MixedMode.h>                                        */
  33. /*    #include <GXMath.h>                                            */
  34. /*        #include <FixMath.h>                                    */
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40. #if PRAGMA_ALIGN_SUPPORTED
  41. #pragma options align=mac68k
  42. #endif
  43.  
  44. #if PRAGMA_IMPORT_SUPPORTED
  45. #pragma import on
  46. #endif
  47.  
  48. #if defined(__MWERKS__) && GENERATING68K
  49.     #pragma push
  50.     #pragma pointers_in_D0
  51. #endif
  52.  
  53. #define layoutRoutinesIncludes
  54. /* old header = layout routines */
  55.  
  56. extern gxShape GXNewLayout(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  57.  THREEWORDINLINE(0x303C, 0x0, 0xA832);
  58. extern long GXGetLayout(gxShape layout, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[], gxLayoutOptions *layoutOptions, gxPoint *position)
  59.  THREEWORDINLINE(0x303C, 0x1, 0xA832);
  60. extern void GXSetLayout(gxShape layout, long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  61.  THREEWORDINLINE(0x303C, 0x2, 0xA832);
  62. extern void GXDrawLayout(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  63.  THREEWORDINLINE(0x303C, 0x3, 0xA832);
  64. extern void GXSetLayoutParts(gxShape layout, gxByteOffset oldStartOffset, gxByteOffset oldEndOffset, long newTextRunCount, const short newTextRunLengths[], const void *newText[], long newStyleRunCount, const short newStyleRunLengths[], const gxStyle newStyles[], long newLevelRunCount, const short newLevelRunLengths[], const short newLevels[])
  65.  THREEWORDINLINE(0x303C, 0x4, 0xA832);
  66. extern void GXSetLayoutShapeParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape insert)
  67.  THREEWORDINLINE(0x303C, 0x5, 0xA832);
  68. extern long GXGetLayoutParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[])
  69.  THREEWORDINLINE(0x303C, 0x6, 0xA832);
  70. extern gxShape GXGetLayoutShapeParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape dest)
  71.  THREEWORDINLINE(0x303C, 0x7, 0xA832);
  72. extern long GXGetLayoutGlyphs(gxShape layout, gxGlyphcode *glyphs, gxPoint positions[], long advance[], gxPoint tangents[], long *runCount, short styleRuns[], gxStyle glyphStyles[])
  73.  THREEWORDINLINE(0x303C, 0x8, 0xA832);
  74. extern gxByteOffset GXHitTestLayout(gxShape layout, const gxPoint *hitDown, gxHighlightType highlightType, gxLayoutHitInfo *hitInfo, gxShape hitTrackingArea)
  75.  THREEWORDINLINE(0x303C, 0x9, 0xA832);
  76. extern gxShape GXGetLayoutHighlight(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxHighlightType highlightType, gxShape highlight)
  77.  THREEWORDINLINE(0x303C, 0xa, 0xA832);
  78. extern gxShape GXGetLayoutVisualHighlight(gxShape layout, gxByteOffset startOffset, long startLeadingEdge, gxByteOffset endOffset, long endLeadingEdge, gxHighlightType highlightType, gxShape highlight)
  79.  THREEWORDINLINE(0x303C, 0xb, 0xA832);
  80. extern gxShape GXGetLayoutCaret(gxShape layout, gxByteOffset offset, gxHighlightType highlightType, gxCaretType caretType, gxShape caret)
  81.  THREEWORDINLINE(0x303C, 0xc, 0xA832);
  82. extern gxByteOffset GXGetLayoutBreakOffset(gxShape layout, gxByteOffset startOffset, Fixed lineWidth, long hyphenationCount, const gxByteOffset hyphenationPoints[], Boolean *startIsStaked, gxByteOffset *priorStake, gxByteOffset *nextStake)
  83.  THREEWORDINLINE(0x303C, 0xd, 0xA832);
  84. extern Fixed GXGetLayoutRangeWidth(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape supplementaryText)
  85.  THREEWORDINLINE(0x303C, 0xe, 0xA832);
  86. extern gxShape GXNewLayoutFromRange(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, const gxLayoutOptions *layoutOptions, gxShape supplementaryText)
  87.  THREEWORDINLINE(0x303C, 0xf, 0xA832);
  88. extern gxShape GXGetCaretAngleArea(gxShape layout, const gxPoint *hitPoint, gxHighlightType highlightType, gxShape caretArea, short *returnedRise, short *returnedRun)
  89.  THREEWORDINLINE(0x303C, 0x10, 0xA832);
  90. extern void GXGetStyleBaselineDeltas(gxStyle baseStyle, gxBaselineType baseType, gxBaselineDeltas returnedDeltas)
  91.  THREEWORDINLINE(0x303C, 0x11, 0xA832);
  92. extern gxByteOffset GXGetRightVisualOffset(gxShape layout, gxByteOffset currentOffset)
  93.  THREEWORDINLINE(0x303C, 0x12, 0xA832);
  94. extern gxByteOffset GXGetLeftVisualOffset(gxShape layout, gxByteOffset currentOffset)
  95.  THREEWORDINLINE(0x303C, 0x13, 0xA832);
  96. extern void GXGetCompoundCharacterLimits(gxShape layout, gxByteOffset trial, gxByteOffset *minOffset, gxByteOffset *maxOffset, Boolean *onBoundary)
  97.  THREEWORDINLINE(0x303C, 0x14, 0xA832);
  98. extern void GXGetOffsetGlyphs(gxShape layout, gxByteOffset trial, long leadingEdge, gxLayoutOffsetState *offsetState, unsigned short *firstGlyph, unsigned short *secondGlyph)
  99.  THREEWORDINLINE(0x303C, 0x15, 0xA832);
  100. extern void GXGetGlyphOffset(gxShape layout, long trial, long onLeftTop, gxByteOffset *offset, Boolean *leadingEdge, Boolean *wasRealCharacter)
  101.  THREEWORDINLINE(0x303C, 0x16, 0xA832);
  102. extern void GXGetLayoutSpan(gxShape layout, Fixed *lineAscent, Fixed *lineDescent)
  103.  THREEWORDINLINE(0x303C, 0x17, 0xA832);
  104. extern void GXSetLayoutSpan(gxShape layout, Fixed lineAscent, Fixed lineDescent)
  105.  THREEWORDINLINE(0x303C, 0x18, 0xA832);
  106. extern Fixed GXGetLayoutJustificationGap(gxShape layout)
  107.  THREEWORDINLINE(0x303C, 0x279, 0xA832);
  108. extern void GXGetLayoutJustificationFactors(gxShape layout, Fixed constrainedFactors[], Fixed unconstrainedFactors[])
  109.  THREEWORDINLINE(0x303C, 0x27A, 0xA832);
  110. extern void GXSetStyleRunControls(gxStyle target, const gxRunControls *runControls)
  111.  THREEWORDINLINE(0x303C, 0x19, 0xA832);
  112. extern void GXSetStyleRunPriorityJustOverride(gxStyle target, const gxPriorityJustificationOverride *priorityJustificationOverride)
  113.  THREEWORDINLINE(0x303C, 0x1a, 0xA832);
  114. extern void GXSetStyleRunGlyphJustOverrides(gxStyle target, long count, const gxGlyphJustificationOverride glyphJustificationOverrides[])
  115.  THREEWORDINLINE(0x303C, 0x1b, 0xA832);
  116. extern void GXSetStyleRunGlyphSubstitutions(gxStyle target, long count, const gxGlyphSubstitution glyphSubstitutions[])
  117.  THREEWORDINLINE(0x303C, 0x1c, 0xA832);
  118. extern void GXSetStyleRunFeatures(gxStyle target, long count, const gxRunFeature runFeatures[])
  119.  THREEWORDINLINE(0x303C, 0x1d, 0xA832);
  120. extern void GXSetStyleRunKerningAdjustments(gxStyle target, long count, const gxKerningAdjustment kerningAdjustments[])
  121.  THREEWORDINLINE(0x303C, 0x1e, 0xA832);
  122. extern void GXSetShapeRunControls(gxShape target, const gxRunControls *runControls)
  123.  THREEWORDINLINE(0x303C, 0x1f, 0xA832);
  124. extern void GXSetShapeRunPriorityJustOverride(gxShape target, const gxPriorityJustificationOverride *priorityJustificationOverride)
  125.  THREEWORDINLINE(0x303C, 0x20, 0xA832);
  126. extern void GXSetShapeRunGlyphJustOverrides(gxShape target, long count, const gxGlyphJustificationOverride glyphJustificationOverrides[])
  127.  THREEWORDINLINE(0x303C, 0x21, 0xA832);
  128. extern void GXSetShapeRunGlyphSubstitutions(gxShape target, long count, const gxGlyphSubstitution glyphSubstitutions[])
  129.  THREEWORDINLINE(0x303C, 0x22, 0xA832);
  130. extern void GXSetShapeRunFeatures(gxShape target, long count, const gxRunFeature runFeatures[])
  131.  THREEWORDINLINE(0x303C, 0x23, 0xA832);
  132. extern void GXSetShapeRunKerningAdjustments(gxShape target, long count, const gxKerningAdjustment kerningAdjustments[])
  133.  THREEWORDINLINE(0x303C, 0x24, 0xA832);
  134. extern long GXGetStyleRunControls(gxStyle source, gxRunControls *runControls)
  135.  THREEWORDINLINE(0x303C, 0x25, 0xA832);
  136. extern long GXGetStyleRunPriorityJustOverride(gxStyle source, gxPriorityJustificationOverride *priorityJustificationOverride)
  137.  THREEWORDINLINE(0x303C, 0x26, 0xA832);
  138. extern long GXGetStyleRunGlyphJustOverrides(gxStyle source, gxGlyphJustificationOverride glyphJustificationOverrides[])
  139.  THREEWORDINLINE(0x303C, 0x27, 0xA832);
  140. extern long GXGetStyleRunGlyphSubstitutions(gxStyle source, gxGlyphSubstitution glyphSubstitutions[])
  141.  THREEWORDINLINE(0x303C, 0x28, 0xA832);
  142. extern long GXGetStyleRunFeatures(gxStyle source, gxRunFeature runFeatures[])
  143.  THREEWORDINLINE(0x303C, 0x29, 0xA832);
  144. extern long GXGetStyleRunKerningAdjustments(gxStyle source, gxKerningAdjustment kerningAdjustments[])
  145.  THREEWORDINLINE(0x303C, 0x2a, 0xA832);
  146. extern long GXGetShapeRunControls(gxShape source, gxRunControls *runControls)
  147.  THREEWORDINLINE(0x303C, 0x2b, 0xA832);
  148. extern long GXGetShapeRunPriorityJustOverride(gxShape source, gxPriorityJustificationOverride *priorityJustificationOverride)
  149.  THREEWORDINLINE(0x303C, 0x2c, 0xA832);
  150. extern long GXGetShapeRunGlyphJustOverrides(gxShape source, gxGlyphJustificationOverride glyphJustificationOverrides[])
  151.  THREEWORDINLINE(0x303C, 0x2d, 0xA832);
  152. extern long GXGetShapeRunGlyphSubstitutions(gxShape source, gxGlyphSubstitution glyphSubstitutions[])
  153.  THREEWORDINLINE(0x303C, 0x2e, 0xA832);
  154. extern long GXGetShapeRunFeatures(gxShape source, gxRunFeature runFeatures[])
  155.  THREEWORDINLINE(0x303C, 0x2f, 0xA832);
  156. extern long GXGetShapeRunKerningAdjustments(gxShape source, gxKerningAdjustment kerningAdjustments[])
  157.  THREEWORDINLINE(0x303C, 0x30, 0xA832);
  158.  
  159. #if defined(__MWERKS__) && GENERATING68K
  160.     #pragma pop
  161. #endif
  162.  
  163. #if PRAGMA_IMPORT_SUPPORTED
  164. #pragma import off
  165. #endif
  166.  
  167. #if PRAGMA_ALIGN_SUPPORTED
  168. #pragma options align=reset
  169. #endif
  170.  
  171. #ifdef __cplusplus
  172. }
  173. #endif
  174.  
  175. #endif /* __GXLAYOUT__ */
  176.